﻿/* ======================================================================== 
 * 描述信息 
 *  
 * 作者：JackerKun       
 * 时间：2018/5/18 9:10:41 
 * 文件名：WebChat_Model 
 * 版本：V1.0.0 
 * 
 * 修改者：           
 * 时间：               
 * 修改说明： 
 * ======================================================================== 
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Fleck;
namespace WebSocketServer
{
    public class ResultObj
    {
        public int code { get; set; }

        public string msg { get; set; }

        public object data { get; set; }


        /// <summary>
        /// 返回的消息类型
        /// </summary>
        public int? type { get; set; }
    }


    public class ResultObj<T>
    {
        public int code { get; set; }

        public string msg { get; set; }
        public int? type { get; set; }
        public List<T> data { get; set; }
    }



    public class WebChat_Msg
    {  /// <summary>
       /// 用户昵称
       /// </summary>
        public string u_name { get; set; }


        /// <summary>
        /// 用户头像
        /// </summary>
        public string u_face { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string u_msg { get; set; }

        /// <summary>
        /// 消息类型:0:文字;1:表情;2:图片；3：获取用户列表
        /// </summary>
        public int msg_type { get; set; }


        /// <summary>
        /// 接收者ID
        /// </summary>
        public Guid u_rid { get; set; }

        /// <summary>
        /// 当前用户的ID
        /// </summary>
        public Guid u_id { get; set; }
        /// <summary>
        /// 发送者ID
        /// </summary>
        public Guid u_sid { get; set; }


        /// <summary>
        /// 用户IP
        /// </summary>
        public string u_ip { get; set; }

        //是否为自己
        public int isMe { get; set; }
        public IWebSocketConnection web_Socket { get; set; }
    }

}
